package pl.un4giv3n.mightvsmagic.jobs;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class RefreshRankJob implements Job {
	
	public void execute(JobExecutionContext context)
			throws JobExecutionException {

		JobDataMap dataMap = context.getJobDetail().getJobDataMap();
		RefreshRankTask task = (RefreshRankTask) dataMap.get(RefreshRankJob.class.getName());
		task.refreshRank();
	}
}
